﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DuBaiCoffee2.Model
{
    public class DigitalMsg
    {
        private static DigitalMsg instance;
        private DigitalMsg() { }
        public static DigitalMsg Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DigitalMsg();
                }
                return instance;
            }
        }
        #region 输入数据
        /// <summary>
        /// 落杯1 开
        /// </summary>
        public string Drop_Cup_start { get; set; } = "01 05 00 00 FF 00 8C 3A ";//"01 05 00 04 FF 00 CD FB";
        /// <summary>
        ///落杯1 关
        /// </summary>
        public string Drop_Cup_end { get; set; } = "01 05 00 00 00 00 CD CA ";//"01 05 00 04 00 00 8C 0B";
        /// <summary>
        /// 落杯2 开
        /// </summary>
        public string Drop_Cup2_start { get; set; } = "01 05 00 01 FF 00 DD FA";// "01 05 00 05 FF 00 9C 3B";
        /// <summary>
        ///落杯2 关
        /// </summary>
        public string Drop_Cup2_end { get; set; } = "01 05 00 01 00 00 9C 0A";// "01 05 00 05 00 00 DD CB";
        /// <summary>
        /// 推杆上升开
        /// </summary>
        public string PushRod_UP_start { get; set; } = "01 05 00 02 FF 00 2D FA";
        /// <summary>
        /// 推杆上升关
        /// </summary>
        public string PushRod_UP_end { get; set; } = "01 05 00 02 00 00 6C 0A";
        /// <summary>
        /// 推杆下降开
        /// </summary>
        public string PushRod_Down_start { get; set; } = "01 05 00 03 FF 00 7C 3A";
        /// <summary>
        /// 推杆下降关
        /// </summary>
        public string PushRod_Down_end { get; set; } = "01 05 00 03 00 00 3D CA";
        /// <summary>
        /// 果糖泵1 开
        /// </summary>
        public string GT1_start { get; set; } = "01 05 00 04 FF 00 CD FB";// "01 05 00 06 FF 00 6C 3B";
        /// <summary>
        /// 果糖泵1 关
        /// </summary>
        public string GT1_end { get; set; } = "01 05 00 04 00 00 8C 0B";// "01 05 00 06 00 00 2D CB";
        /// <summary>
        /// 果糖泵2 开
        /// </summary>
        public string GT2_start { get; set; } = "01 05 00 05 FF 00 9C 3B";//"01 05 00 07 FF 00 3D FB";
        /// <summary>
        /// 果糖泵2 关
        /// </summary>
        public string GT2_end { get; set; } = "01 05 00 05 00 00 DD CB";// "01 05 00 07 00 00 7C 0B";
        /// <summary>
        /// 果糖泵3 开
        /// </summary>
        public string GT3_start { get; set; } = "01 05 00 06 FF 00 6C 3B";// "01 05 00 08 FF 00 0D F8";
        /// <summary>
        /// 果糖泵3 关
        /// </summary>
        public string GT3_end { get; set; } = "01 05 00 06 00 00 2D CB";//"01 05 00 08 00 00 4C 08";
        /// <summary>
        /// 机器人远程开机 开
        /// </summary>
        public string RobotPowerOn_start { get; set; } = "01 05 00 07 FF 00 3D FB";// "01 05 00 00 FF 00 8C 3A ";
        /// <summary>
        /// 机器人远程开机 关
        /// </summary>
        public string RobotPowerOn_end { get; set; } = "01 05 00 07 00 00 7C 0B";//"01 05 00 00 00 00 CD CA ";
        /// <summary>
        /// 机器人远程开机 开
        /// </summary>
        public string RobotPowerOn2_start { get; set; } = "01 05 00 08 FF 00 0D F8";// "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 机器人远程开机 关
        /// </summary>
        public string RobotPowerOn2_end { get; set; } = "01 05 00 08 00 00 4C 08";// "01 05 00 01 00 00 9C 0A";
        /// <summary>
        /// 升杯前进1 开
        /// </summary>
        public string SBQJ1_start { get; set; } = "01 05 00 09 FF 00 5C 38";// "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 升杯前进1 关
        /// </summary>
        public string SBQJ1_end { get; set; } = "01 05 00 09 00 00 1D C8";// "01 05 00 01 00 00 9C 0A";
        /// <summary>
        /// 升杯后退1 开
        /// </summary>
        public string SBHT1_start { get; set; } = "01 05 00 0A FF 00 AC 38";// "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 升杯后退1 关
        /// </summary>
        public string SBHT1_end { get; set; } = "01 05 00 0A 00 00 ED C8";// "01 05 00 01 00 00 9C 0A";
        /// <summary>
        /// 升杯前进2 开
        /// </summary>
        public string SBQJ2_start { get; set; } = "01 05 00 0B FF 00 FD F8";// "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 升杯前进2 关
        /// </summary>
        public string SBQJ2_end { get; set; } = "01 05 00 0B 00 00 BC 08";// "01 05 00 01 00 00 9C 0A";
        /// <summary>
        /// 升杯后退2 开
        /// </summary>
        public string SBHT2_start { get; set; } = "01 05 00 0C FF 00 4C 39";// "01 05 00 01 FF 00 DD FA";
        /// <summary>
        /// 升杯后退2 关
        /// </summary>
        public string SBHT2_end { get; set; } = "01 05 00 0C 00 00 0D C9";// "01 05 00 01 00 00 9C 0A";

        #endregion
        #region 查询数据

        public string AllMessage { get; set; } = "01 04 00 00 00 32 71 DF";// "02 04 00 00 00 32 71 EC";////"01 04 00 00 00 32 71 DF";

        #endregion
        #region 机器人输入数据
        #region 左臂
        ///// <summary>
        ///// 制作咖啡开
        ///// </summary>
        //public string LRobot_KFJ_UP { get; set; } = "03 05 00 28 FF 00 0D D0";
        ///// <summary>
        ///// 制作咖啡关
        ///// </summary>
        //public string LRobot_KFJ_Down { get; set; } = "03 05 00 28 00 00 4C 20";
        ///// <summary>
        ///// 到接杯点 开
        ///// </summary>
        //public string LRobot_DJBD_UP { get; set; } = "03 05 00 29 FF 00 5C 10";
        ///// <summary>
        ///// 到接杯点 关
        ///// </summary>
        //public string LRobot_DJBD_Down { get; set; } = "03 05 00 29 00 00 1D E0";
        ///// <summary>
        ///// 到接杯点 开
        ///// </summary>
        //public string LRobot_DJBD2_UP { get; set; } = "03 05 00 2A FF 00 AC 10";
        ///// <summary>
        ///// 到接杯点 关
        ///// </summary>
        //public string LRobot_DJBD2_Down { get; set; } = "03 05 00 2A 00 00 ED E0";
        ///// <summary>
        ///// 到检测点 开
        ///// </summary>
        //public string LRobot_DJCD_UP { get; set; } = "03 05 00 2B FF 00 FD D0";
        ///// <summary>
        ///// 到检测点 关
        ///// </summary>
        //public string LRobot_DJCD_Down { get; set; } = "03 05 00 2B 00 00 BC 20";
        ///// <summary>
        ///// 去接咖啡 开
        ///// </summary>
        //public string LRobot_QJKF_UP { get; set; } = "03 05 00 2C FF 00 4C 11";
        ///// <summary>
        ///// 去接咖啡 关
        ///// </summary>
        //public string LRobot_QJKF_Down { get; set; } = " 03 05 00 2C 00 00 0D E1";
        ///// <summary>
        ///// 咖啡接完 开
        ///// </summary>
        //public string LRobot_KFJW_UP { get; set; } = "03 05 00 2D FF 00 1D D1";
        ///// <summary>
        ///// 咖啡接完 关
        ///// </summary>
        //public string LRobot_KFJW_Down { get; set; } = "03 05 00 2D 00 00 5C 21";
        ///// <summary>
        ///// 去打印机 开
        ///// </summary>
        //public string LRobot_QDYJ_UP { get; set; } = "03 05 00 2E FF 00 ED D1";
        ///// <summary>
        ///// 去打印机 关
        ///// </summary>
        //public string LRobot_QDYJ_Down { get; set; } = "03 05 00 2E 00 00 AC 21";
        ///// <summary>
        ///// 打印完成 开
        ///// </summary>
        //public string LRobot_DYWC_UP { get; set; } = "03 05 00 2F FF 00 BC 11";
        ///// <summary>
        ///// 打印完成 关
        ///// </summary>
        //public string LRobot_DYWC_Down { get; set; } = "03 05 00 2F 00 00 FD E1";
        ///// <summary>
        ///// 无杯通知 开
        ///// </summary>
        //public string LRobot_WBTZ_UP { get; set; } = "03 05 00 32 FF 00 2C 17";
        ///// <summary>
        ///// 无杯通知 关
        ///// </summary>
        //public string LRobot_WBTZ_Down { get; set; } = "03 05 00 32 00 00 6D E7";
        ///// <summary>
        ///// 接杯成功 开
        ///// </summary>
        //public string LRobot_JBCG_UP { get; set; } = "03 05 00 33 FF 00 7D D7";
        ///// <summary>
        ///// 接杯成功 关
        ///// </summary>
        //public string LRobot_JBCG_Down { get; set; } = "03 05 00 33 00 00 3C 27";
        ///// <summary>
        ///// 加冰 开
        ///// </summary>
        //public string LRobot_JB_UP { get; set; } = "03 05 00 34 FF 00 CC 16";
        ///// <summary>
        ///// 加冰 关
        ///// </summary>
        //public string LRobot_JB_Down { get; set; } = "03 05 00 34 00 00 8D E6";
        ///// <summary>
        ///// 打印 开
        ///// </summary>
        //public string LRobot_DY_UP { get; set; } = "03 05 00 35 FF 00 9D D6";
        ///// <summary>
        ///// 打印 关
        ///// </summary>
        //public string LRobot_DY_Down { get; set; } = "03 05 00 35 00 00 DC 26";
        ///// <summary>
        ///// 拉花 开
        ///// </summary>
        //public string LRobot_LH_UP { get; set; } = "03 05 00 36 FF 00 6D D6";
        ///// <summary>
        ///// 拉花 关
        ///// </summary>
        //public string LRobot_LH_Down { get; set; } = "03 05 00 36 00 00 2C 26";
        ///// <summary>
        ///// 拉花出餐 开
        ///// </summary>
        //public string LRobot_LHCC_UP { get; set; } = "03 05 00 38 FF 00 0C 15";
        ///// <summary>
        ///// 拉花出餐 关
        ///// </summary>
        //public string LRobot_LHCC_Down { get; set; } = "03 05 00 38 00 00 4D E5";
        ///// <summary>
        ///// 加果糖 开
        ///// </summary>
        //public string LRobot_JGT_UP { get; set; } = "03 05 00 39 FF 00 5D D5";
        ///// <summary>
        ///// 加果糖 关
        ///// </summary>
        //public string LRobot_JGT_Down { get; set; } = "03 05 00 39 00 00 1C 25";
        ///// <summary>
        ///// 果糖完成 开
        ///// </summary>
        //public string LRobot_GTWC_UP { get; set; } = "03 05 00 3A FF 00 AD D5";
        ///// <summary>
        ///// 果糖完成 关
        ///// </summary>
        //public string LRobot_GTWC_Down { get; set; } = "03 05 00 3A 00 00 EC 25";
        ///// <summary>
        ///// 招手 开
        ///// </summary>
        //public string LRobot_ZS_UP { get; set; } = "03 05 00 3B FF 00 FC 15";
        ///// <summary>
        ///// 招手 关
        ///// </summary>
        //public string LRobot_ZS_Down { get; set; } = "03 05 00 3B 00 00 BD E5";

        #region 多出来得东西
        ///// <summary>
        ///// 停止程序
        ///// </summary>
        //public string LRobot_Stop_UP { get; set; } = "03 05 00 2F FF 00 BC 11";
        ///// <summary>
        ///// 停止程序
        ///// </summary>
        //public string LRobot_Stop_Down { get; set; } = "03 05 00 2F 00 00 FD E1";
        ///// <summary>
        ///// 开始制作
        ///// </summary>
        //public string LRobot_Start_UP { get; set; } = "03 05 00 30 FF 00 8D D7";
        ///// <summary>
        ///// 开始制作
        ///// </summary>
        //public string LRobot_Start_Down { get; set; } = "03 05 00 30 00 00 CC 27";
        ///// <summary>
        ///// 取杯1
        ///// </summary>
        //public string LRobot_QB1_UP { get; set; } = "03 05 00 31 FF 00 DC 17";
        ///// <summary>
        ///// 取杯1
        ///// </summary>
        //public string LRobot_QB1_Down { get; set; } = "03 05 00 31 00 00 9D E7";
        ///// <summary>
        ///// 取杯2
        ///// </summary>
        //public string LRobot_QB2_UP { get; set; } = "03 05 00 32 FF 00 2C 17";
        ///// <summary>
        ///// 取杯2
        ///// </summary>
        //public string LRobot_QB2_Down { get; set; } = "03 05 00 32 00 00 6D E7";
        ///// <summary>
        ///// 杯检测
        ///// </summary>
        //public string LRobot_BJC_UP { get; set; } = "03 05 00 33 FF 00 7D D7";
        ///// <summary>
        ///// 杯检测
        ///// </summary>
        //public string LRobot_BJC_Down { get; set; } = "03 05 00 33 00 00 3C 27";
        ///// <summary>
        ///// 接咖啡
        ///// </summary>
        //public string LRobot_JKF_UP { get; set; } = "03 05 00 34 FF 00 CC 16";
        ///// <summary>
        ///// 接咖啡
        ///// </summary>
        //public string LRobot_JKF_Down { get; set; } = "03 05 00 34 00 00 8D E6";
        ///// <summary>
        ///// 咖啡完成
        ///// </summary> 
        //public string LRobot_KFWC_UP { get; set; } = "03 05 00 35 FF 00 9D D6";
        ///// <summary>
        ///// 咖啡完成
        ///// </summary>
        //public string LRobot_KFWC_Down { get; set; } = "03 05 00 35 00 00 DC 26";
        ///// <summary>
        ///// 去打印
        ///// </summary>
        //public string LRobot_DY_UP { get; set; } = "03 05 00 36 FF 00 6D D6";
        ///// <summary>
        ///// 去打印
        ///// </summary>
        //public string LRobot_DY_Down { get; set; } = "03 05 00 36 00 00 2C 26";
        ///// <summary>
        ///// 打印完成
        ///// </summary>
        //public string LRobot_DYWC_UP { get; set; } = "03 05 00 37 FF 00 3C 16";
        ///// <summary>
        ///// 打印完成
        ///// </summary>
        //public string LRobot_DYWC_Down { get; set; } = "03 05 00 37 00 00 7D E6";
        ///// <summary>
        ///// 出杯
        ///// </summary>
        //public string LRobot_CB_UP { get; set; } = "03 05 00 38 FF 00 0C 15";
        ///// <summary>
        ///// 出杯
        ///// </summary>
        //public string LRobot_CB_Down { get; set; } = "03 05 00 38 00 00 4D E5";
        ///// <summary>
        ///// 是否打印
        ///// </summary>
        //public string LRobot_SFDY_UP { get; set; } = "03 05 00 39 FF 00 5D D5";
        ///// <summary>
        ///// 是否打印
        ///// </summary>
        //public string LRobot_SFDY_Down { get; set; } = "03 05 00 39 00 00 1C 25";

        ///// <summary>
        ///// 是否打印牛奶
        ///// </summary>
        //public string LRobot_SFDYNN_UP { get; set; } = "03 05 00 3A FF 00 AD D5";
        ///// <summary>
        ///// 是否打印牛奶
        ///// </summary>
        //public string LRobot_SFDYNN_Down { get; set; } = "03 05 00 3A 00 00 EC 25";
        #endregion
        #endregion
        #region 机器人查询
        ///// <summary>
        ///// 到原点
        ///// </summary>
        //public string LRobot_DYD { get; set; } = "03 02 00 08 00 01 39 EA";
        ///// <summary>
        ///// 出餐完成
        ///// </summary>
        //public string LRobot_CCWC { get; set; } = "03 02 00 09 00 01 68 2A";
        ///// <summary>
        ///// 到达落杯器1
        ///// </summary>
        //public string LRobot_DDLBQ1 { get; set; } = "03 02 00 0A 00 01 98 2A";
        ///// <summary>
        ///// 到达落杯器2
        ///// </summary>
        //public string LRobot_DDLBQ2 { get; set; } = "03 02 00 0B 00 01 C9 EA";
        ///// <summary>
        ///// 到达打印机
        ///// </summary>
        //public string LRobot_DDDYJ { get; set; } = "03 02 00 0C 00 01 78 2B";
        ///// <summary>
        ///// 到咖啡机
        ///// </summary>
        //public string LRobot_DKFJ { get; set; } = "03 02 00 0D 00 01 29 EB";
        ///// <summary>
        /////到接杯检测
        ///// </summary>
        //public string LRobot_DJBJC { get; set; } = "03 02 00 0E 00 01 D9 EB";
        ///// <summary>
        ///// 到接冰点
        ///// </summary>
        //public string LRobot_DJBD { get; set; } = "03 02 00 0F 00 01 88 2B";
        ///// <summary>
        ///// 到拉花点
        ///// </summary>
        //public string LRobot_DLHD { get; set; } = "03 02 00 10 00 01 B9 ED";
        ///// <summary>
        ///// 到果糖点
        ///// </summary>
        //public string LRobot_DGTD { get; set; } = "03 02 00 11 00 01 E8 2D";
        ///// <summary>
        ///// 招手完成
        ///// </summary>
        //public string LRobot_ZSWC { get; set; } = "03 02 00 12 00 01 18 2D";
        ///// <summary>
        ///// 左臂出餐
        ///// </summary>
        //public string LRobot_YCC { get; set; } = "03 02 00 12 00 01 18 2D";
        ///// <summary>
        ///// 右臂机器上电
        ///// </summary>
        //public string RRobot_JQSD { get; set; } = "04 02 00 12 00 01 19 9A";
        #endregion
        #endregion


        #region 右臂
        ///// <summary>
        ///// 制作咖啡右开
        ///// </summary>
        //public string LRobot_KFJR_UP { get; set; } = "04 05 00 28 FF 00 0C 67";
        ///// <summary>
        ///// 制作咖啡右关
        ///// </summary>
        //public string LRobot_KFJR_Down { get; set; } = "04 05 00 28 00 00 4D 97";
        ///// <summary>
        /////  加冰 开
        ///// </summary>
        //public string LRobot_JBR_UP { get; set; } = "04 05 00 29 FF 00 5D A7";
        ///// <summary>
        ///// 加冰 关
        ///// </summary>
        //public string LRobot_JBR_Down { get; set; } = "04 05 00 29 00 00 1C 57";
        ///// <summary>
        ///// 拉花 开
        ///// </summary>
        //public string LRobot_LHR_UP { get; set; } = "04 05 00 2A FF 00 AD A7";
        ///// <summary>
        ///// 拉花 关
        ///// </summary>
        //public string LRobot_LHR_Down { get; set; } = "04 05 00 2A 00 00 EC 57";
        ///// <summary>
        ///// 出冰完成 开
        ///// </summary>
        //public string LRobot_CBWCR_UP { get; set; } = "04 05 00 2B FF 00 FC 67";
        ///// <summary>
        ///// 出冰完成 关
        ///// </summary>
        //public string LRobot_CBWCR_Down { get; set; } = "04 05 00 2B 00 00 BD 97";
        ///// <summary>
        ///// 倒冰 开
        ///// </summary>
        //public string LRobot_DBR_UP { get; set; } = "04 05 00 2C FF 00 4D A6";
        ///// <summary>
        ///// 倒冰 关
        ///// </summary>
        //public string LRobot_DBR_Down { get; set; } = "04 05 00 2C 00 00 0C 56";
        ///// <summary>
        ///// 接奶完成 开
        ///// </summary>
        //public string LRobot_JNWCR_UP { get; set; } = "04 05 00 2D FF 00 1C 66";
        ///// <summary>
        ///// 接奶完成 关
        ///// </summary>
        //public string LRobot_JNWCR_Down { get; set; } = "04 05 00 2D 00 00 5D 96";
        ///// <summary>
        ///// 洗杯 开
        ///// </summary>
        //public string LRobot_XBR_UP { get; set; } = "04 05 00 2E FF 00 EC 66";
        ///// <summary>
        ///// 洗杯 关
        ///// </summary>
        //public string LRobot_XBR_Down { get; set; } = "04 05 00 2E 00 00 AD 96";
        ///// <summary>
        ///// 冰品接奶 开
        ///// </summary>
        //public string LRobot_BPJN_UP { get; set; } = "04 05 00 30 FF 00 8C 60";
        ///// <summary>
        ///// 冰品接奶 关
        ///// </summary>
        //public string LRobot_BPJN_Down { get; set; } = "04 05 00 30 00 00 CD 90";
        ///// <summary>
        ///// 冰品接奶完成 开
        ///// </summary>
        //public string LRobot_BPJNWC_UP { get; set; } = "04 05 00 31 FF 00 DD A0";
        ///// <summary>
        ///// 冰品接奶完成 关
        ///// </summary>
        //public string LRobot_BPJNWC_Down { get; set; } = "04 05 00 31 00 00 9C 50";
        #endregion
        #region 机器人查询右臂
        ///// <summary>
        ///// 到原点
        ///// </summary>
        //public string RRobot_DYD { get; set; } = "04 02 00 08 00 01 38 5D";
        ///// <summary>
        ///// 到制冰机
        ///// </summary>
        //public string RRobot_DZBJ { get; set; } = "04 02 00 09 00 01 69 9D";
        ///// <summary>
        ///// 倒冰完成
        ///// </summary>
        //public string RRobot_DBWC { get; set; } = "04 02 00 0A 00 01 99 9D";
        ///// <summary>
        ///// 到拉花点
        ///// </summary>
        //public string RRobot_DLHD { get; set; } = "04 02 00 0B 00 01 C8 5D";
        ///// <summary>
        ///// 到倒冰点
        ///// </summary>
        //public string RRobot_DDBD { get; set; } = "04 02 00 0C 00 01 79 9C";
        ///// <summary>
        ///// 到咖啡机
        ///// </summary>
        //public string RRobot_DKFJ { get; set; } = "04 02 00 0D 00 01 28 5C";
        ///// <summary>
        ///// 到洗杯点
        ///// </summary>
        //public string RRobot_QXBD { get; set; } = "04 02 00 0E 00 01 D8 5C";
        ///// <summary>
        ///// 冰品到接奶点
        ///// </summary>
        //public string RRobot_BPDJND { get; set; } = "04 02 00 0F 00 01 89 9C";
        ///// <summary>
        ///// 到原点
        ///// </summary>
        //public string LRobot_DYDR { get; set; } = "03 02 00 08 00 01 39 EA";
        #endregion
    }
}
